<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Jedrzej\Pimpable\PimpableTrait;

class MemberRight extends Model
{
    use HasFactory;
    use PimpableTrait;
    /**
     * 会员权益模型
     */
    /**
     * 默认排序
     */
    protected $defaultSortCriteria = ['id,desc'];

    /**
     * 可排序字段
     */
    public $sortable = [
        'status',
        'created_at',
        'id'
    ];

    /**
     * 可搜索字段
     */
    public $searchable = [
        'right_type',
        'right_title',
        'explain',
        'status',
    ];
    /**
     * 可批量赋值字段
     */
    protected $fillable = [
        'right_type',
        'right_title',
        'show_title',
        'image',
        'explain',
        'number',
        'order',
        'status',
    ];
}
